﻿using UnityEngine;
using System.Collections;

public class CursorScript : MonoBehaviour {


	// Update is called once per frame
	void Update () {

		Vector3 p = Camera.main.ScreenPointToRay(Input.mousePosition).GetPoint(-Camera.main.transform.position.z);
		p.z = transform.position.z;
		transform.position = p;

	
	}
}
